import request from '@/utils/request'

// 查询告警辅助配置列表
export function listJobAlarmConfig(query) {
  return request({
    url: '/streaming/JobAlarmConfig/list',
    method: 'get',
    params: query
  })
}

// 查询告警辅助配置详细
export function getJobAlarmConfig(id) {
  return request({
    url: '/streaming/JobAlarmConfig/' + id,
    method: 'get'
  })
}

// 新增告警辅助配置
export function addJobAlarmConfig(data) {
  return request({
    url: '/streaming/JobAlarmConfig',
    method: 'post',
    data: data
  })
}

// 修改告警辅助配置
export function updateJobAlarmConfig(data) {
  return request({
    url: '/streaming/JobAlarmConfig',
    method: 'put',
    data: data
  })
}

// 删除告警辅助配置
export function delJobAlarmConfig(id) {
  return request({
    url: '/streaming/JobAlarmConfig/' + id,
    method: 'delete'
  })
}

// 导出告警辅助配置
export function exportJobAlarmConfig(query) {
  return request({
    url: '/streaming/JobAlarmConfig/export',
    method: 'get',
    params: query
  })
}